'use strict';
// app/service/news.js
const Service = require('egg').Service;

class NewsService extends Service {
  async list() {
    return [{
      url: 'http://www.baidu.com',
      title: '百度一下',
    }, {
      url: 'http://www.baidu.com',
      title: '百度一下',
    }];
  }
}

module.exports = NewsService;
